package cn.com.jenson.service.file.repository;

import cn.com.jenson.common.BasicRepository;
import cn.com.jenson.entity.file.Sharding;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShardingRepository extends BasicRepository<Sharding>, JpaRepository<Sharding,Integer> {
    List<Sharding> findByFileId(Integer fileId);
    List<Sharding> findByFileIdAndDeleted(Integer fileId,Boolean deleted);
}
